﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IDoctor
    {
        #region 医生的查询、添加、更新和删除

        DoctorInfo GetDoctorInfo(int did);
        List<DoctorInfo> GetDoctorInfoByNameHospital(string name, string hospital);

        int AddDoctor(DoctorInfo info);

        bool UpdateDoctor(DoctorInfo info);

        bool DeleteDoctor(int did);

        #endregion

        #region 医生列表及其搜索

        // 按条件检索医生列表
        List<DoctorInfo> GetDoctorList(string condStr);
        List<DoctorInfo> GetDoctorList(int pageSize, int pageIndex, string condStr, out int count);
        List<DoctorInfo> GetDoctorList(int pageSize, int pageIndex, string condStr, string orderStr, out int count);
        List<DoctorInfo> GetDoctorListEx(int pageSize, int pageIndex, int diseaseId, out int count);

        #endregion
    }
}
